//package com.info.zhiduoduo.admin.controller;
//
//import com.info.zhiduoduo.admin.model.formbean.company.CompanyTaxFormBean;
//import com.info.zhiduoduo.admin.service.CompanyTaxService;
//import com.info.zhiduoduo.common.annotation.LogEntity;
//import com.info.zhiduoduo.common.annotation.LogParameter;
//import com.info.zhiduoduo.common.annotation.ZddLog;
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.constants.system.ZddLogType;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.repository.dto.company.CompanyTaxDto;
//import com.info.zhiduoduo.repository.entity.company.Company;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/tax")
//public class CompanyTaxController {
//
//    @Autowired
//    CompanyTaxService quotaService;
//
//    @ApiOperation("获取企业费率")
//    @PostMapping("/getCompanyTax")
//    public SmartResult<CompanyTaxDto> getCompanyTax(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//        return quotaService.getCompanyTax(formBean);
//    }
//
//    @ZddLog(type = ZddLogType.UPDATE, name = "编辑企业费率", entities = @LogEntity(entity = Company.class, parameters =
//    @LogParameter(fields = "compid", parameters = "formBean.reqdata.compid")))
//    @ApiOperation("编辑企业费率")
//    @PostMapping("/editCompanyTax")
//    public SmartResult editCompanyTax(@RequestBody BaseSimpleFormBean<CompanyTaxFormBean> formBean) {
//        return quotaService.editCompanyTax(formBean);
//    }
//}
